package com.shixulin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shixulin.entity.UserExam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * (UserExam)表数据库访问层
 *
 * @author makejava
 * @since 2023-12-17 17:00:17
 */
@Mapper
@Repository
public interface UserExamMapper extends BaseMapper<UserExam> {

   List<UserExam>  isStatus(@Param("userId") int userId, @Param("paperId") int paperId);

    UserExam getMaxStatus(@Param("userId") int userId, @Param("paperId") int paperId);

    List<Integer> getPaperId(int subjectId);
}
